/**
 * 
 */
package game.kill.enums;

/**
 * @author leiruiqi
 *
 */
public enum GameRecordTypeEnum {

	kill_dead(1),
	
	check(2),
	
	voted_dead(3)
	;
	private Integer code;
	
	
	
	public Integer getCode() {
		return code;
	}



	private GameRecordTypeEnum(int code) {
		this.code = code;
	}
	//checked,
	
	public static GameRecordTypeEnum getByCode(Integer code){
		for(GameRecordTypeEnum type:GameRecordTypeEnum.values()){
			if(type.getCode() == code){
				return type;
			}
		}
		return null;
	}
}
